package dynamicJsonVerifyer.demo;

import com.alibaba.fastjson.JSONObject;
import dynamicJsonVerifyer.DynamicJsonVerifyService;
import org.springframework.beans.factory.annotation.Autowired;

public class MainDemo {

    @Autowired
    DynamicJsonVerifyService dynamicJsonVerifyService;

    public void use(){
        JSONObject json = new JSONObject();
        String errorMsg = dynamicJsonVerifyService.execute("iot.property", "iot.$productKey.property", json);
        if(errorMsg!=null)
            System.out.println("校验失败! ->　"+errorMsg);
    }

}
